package com.study.design.pattern.principle.dependenceinversion;

/**
 * @Author: gongsl
 * @Date: 2025-01-11 21:49
 * @description: 学习课程的开发Tom
 */
public class Tom {
    private ICourse iCourse;

    public void setiCourse(ICourse iCourse) {
        this.iCourse = iCourse;
    }

    /**
     * 学习课程
     */
    public void studyCourse(){
        iCourse.studyCourse();
    }
}
